<?php global $wp_theme_options; ?>
<div id="menu" class="clearfix">
<ul class="clearfix">
<?php //A link back to the homepage ... unlesss the user chose to omit it ?>
	<?php if(!in_array('home',(array)$wp_theme_options['exclude_pages']) ) { ?>
	<li class="home <?php if ( is_home() ) { echo "current_page_item"; } ?>"><a href="<?php echo get_settings('home'); ?>"><?php _e("Home"); ?></a></li>
	<?php } ?>
    <?php //Lists pages, excludes pages selected in theme options ?>
    <?php if($wp_theme_options['exclude_pages']) $exclude = implode(",", $wp_theme_options['exclude_pages']); ?>
    <?php $my_pages = "title_li=&depth=2&sort_column=menu_order&exclude=".$exclude; wp_list_pages($my_pages); ?>
</ul>
</div>